<?php

namespace DataBase {
    class Db{
        public $ip = "mysql:host=127.0.0.1;dbname=hoho;charset=utf8";
        public $name = "root";
        private $pwd = "root";
        public $conn;

        function connet (){
            $this->conn=new \PDO($this->ip,$this->name,$this->pwd);
            return $this->conn;
        }
    }
}